<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>datalist标签</title>
</head>
<body>
<form action="#" method="get">
    <label>友情链接：</label>
    <input type="url" list="url_list" name="link">
    <datalist id="url_list">
        <option label="W3School" value="http://www.w3school.com.cn/"></option>
        <option label="Google" value="http://www.google.com.hk/"></option>
        <option label="百度" value="http://www.baidu.com/"></option>
    </datalist>
    <input type="submit" value="提交">
</form>
</body>
</html>